package com.hiadechizi.dynamic.annotation;

import com.hiadechizi.dynamic.enums.DataSourceEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * 数据源路由注解，用于切换数据源
 */
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RouterDataSource {

    DataSourceEnum value() default DataSourceEnum.MASTER;
}
